/*
 * jiyan
 */
package com.jiyan.market.service;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

import com.rzhkj.core.base.BaseMybatisDAO;
import com.rzhkj.core.base.BaseMybatisSVImpl;

import com.jiyan.market.facade.MarketRepairRecordSV;
import com.jiyan.market.dao.MarketRepairRecordDAO;
import com.jiyan.market.entity.MarketRepairRecord;


/**
 * 维修记录
 * @author jiyan
 */
@Component
@Service
public class MarketRepairRecordSVImpl extends BaseMybatisSVImpl<MarketRepairRecord,Long> implements MarketRepairRecordSV{


	@Resource
	private MarketRepairRecordDAO marketRepairRecordDAO;

    @Override
    protected BaseMybatisDAO getBaseMybatisDAO(){
		return marketRepairRecordDAO;
	}


	/**
	 * 加载对象维修记录 通过code
	 * @param code 编码
	 * @return MarketRepairRecord
	 */
     @Override
     public MarketRepairRecord loadByCode(java.lang.String code) {
		return marketRepairRecordDAO.loadByCode(code);
	 }

     /**
      * 删除对象维修记录
	   * @param id * @param code 编码
      */
	 @Override
     public void delete(java.lang.Long id,java.lang.String code) {
		marketRepairRecordDAO.delete(id,code);
	 }



}